<template>
  <mapComponent></mapComponent>
  <div class="masking top"></div>
  <div class="masking right"></div>
  <div class="masking bottom"></div>
  <div class="masking left"></div>
  <div class="road">
   <span class="container__title">颗粒物电子围栏</span>
    <leftRoad></leftRoad>
    <div class="road__position">
      <img :src="wayImage" alt="" />
      <div class="road__position-title">东北风&nbsp;&nbsp;2级</div>
    </div>
    <rightRoad></rightRoad>
  </div>
</template>

<script lang="ts" setup>
import { reactive, onMounted } from 'vue'
import icon1 from '@/assets/image/roadTransport/icon1.png'
import icon2 from '@/assets/image/roadTransport/icon2.png'
import wayImage from '@/assets/image/home/way.png'
import leftRoad from './components/leftRoad.vue'
import rightRoad from './components/rightRoad.vue'
import mapComponent from './map/map.vue'
const data = reactive({
  value: '货运',
  options: [
    {
      value: '货运',
      label: '货运'
    },
    {
      value: '客车',
      label: '客车'
    }
  ]
})

onMounted(() => {})
</script>

<style lang="less" scoped>
.masking {
  position: absolute;
  z-index: 998;
  &.top {
    top: 0;
    left: 0;
    width: 1920px;
    height: 200px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, #011032 100%);
  }
  &.right {
    top: 0;
    right: 0;
    width: 700px;
    height: 1080px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #011032 100%);
  }
  &.bottom {
    left: 0;
    bottom: 0;
    width: 1920px;
    height: 200px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #011032 100%);
  }
  &.left {
    left: 0;
    top: 0;
    width: 700px;
    height: 1080px;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, #011032 100%);
  }
}
.road {
  pointer-events: none;
  position: absolute;
  display: flex;
  justify-content: space-between;
  //background: #000000;
  background: url('../../assets/image/home/border-title.png') no-repeat;
  background-size: 100%;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  z-index: 999;

  .container__title {
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translate(-50%, 0);
    opacity: 1;

    font-family: YouSheBiaoTiHei;
    font-size: 42px;
    font-weight: normal;
    line-height: normal;
    text-align: center;
    letter-spacing: 0em;

    color: #d4e8f8;

    text-shadow: 0px 0px 12px 0px rgba(50, 160, 244, 0.6);
  }

  .road__position,
  .road__right,
  .road__left {
    z-index: 10;
    margin-top: 100px;
  }
  .road__position {
    position: absolute;
    top: 15%;
    left: 30%;
    transform: translate(-50%, -50%);
    > img {
      width: 130px;
      height: 130px;
      margin-bottom: 8px;
    }
    .road__position-title {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      padding: 8px;

      background: rgba(6, 43, 72, 0.7);

      box-sizing: border-box;
      border: 2.5px solid;
      border-image: linear-gradient(
          180deg,
          rgba(212, 232, 248, 0.2) 0%,
          rgba(212, 232, 248, 0.4) 100%
        )
        2.5;

      font-family: Source Han Sans CN;
      font-size: 14px;
      font-weight: normal;
      line-height: normal;
      letter-spacing: 0em;
      border-radius: 4px;
      /* 标题色 */
      color: #d4e8f8;
    }
  }
}
</style>
